<template>
  <div>
    <el-dialog title="查找" :visible.sync="dialogShow">
      <el-form :model="form">
        <el-form-item label="用户授权码" :label-width="formLabelWidth">
          <el-input v-model="form.code_num" autocomplete="off" clearable="" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogShow = false">取 消</el-button>
        <el-button type="primary" @click="submitBtn">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formLabelWidth: '100px',
      form: {
        code_num: ''
      },
      dialogShow: false
    }
  },
  methods: {
    submitBtn() {
      this.$emit('search', this.form)
      this.dialogShow = false
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
